package com.lht.designPattern.factory_method.simple;

/**
 * @author Eric
 * @version 1.0
 * @date 2019-10-05
 */
public class PersonFactory {

    public Person createStudent() {
        return new Student();
    }

    public Person createTeacher() {
        return new Teacher();
    }
}
